cmake_minimum_required( VERSION 2.8 )
project( data_structure_learning )
set( CMAKE_BUILD_TYPE "Debug" )
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( CMAKE_CXX_COMPILER "g++" )


set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
link_directories(${PROJECT_SOURCE_DIR}/lib)
include_directories(${PROJECT_SOURCE_DIR}/include)


set(EXTERN_LIBS glog)

# Array
add_library(Array src/Array.cpp)
add_executable( test_Array test/test_Array.cpp)
target_link_libraries( test_Array Array ${EXTERN_LIBS})


#libs
#add_library(part2_vector src/part2_vector.cpp)
#target_link_libraries(part2_vector ${EXTERN_LIBS})

#add_library(stack src/stack.cpp)
#target_link_libraries(stack ${EXTERN_LIBS})

#set(OWN_LIBS part2_vector stack)
#message(STATUS "OWN_LIBS = ${OWN_LIBS}")

# bins
#add_executable(test_part1_introduction test/test_part1_introduction.cpp )
#target_link_libraries(test_part1_introduction ${EXTERN_LIBS} ${OWN_LIBS})




#add_executable(test_part2_vector test/test_part2_vector.cpp )
#target_link_libraries(test_part2_vector ${EXTERN_LIBS})

#add_executable(test_stack test/test_stack.cpp )
#target_link_libraries(test_stack ${EXTERN_LIBS} )
